package com.hydra.base.entity;

import com.hydra.base.comment.Comment;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;
import java.util.Date;

public class EsIdEntity implements Serializable {

	@Id
	@Getter @Setter
	@Comment("主键")
	protected Long id;

	@Getter @Setter
	@Comment("删除标志，1：删除，0：正常")
	protected boolean delFlag = false;

	@Getter @Setter
	@Comment("创建人ID")
	protected Long creator;

	@Getter @Setter
	@Comment("更新人ID")
	protected Long updater;

	@Getter @Setter
	@Comment("创建时间")
	@Field(name = "create_time",format= DateFormat.date_time)
	protected Date createTime;

	@Getter @Setter
	@Comment("更新时间")
	@Field(name = "update_time",format= DateFormat.date_time)
	protected Date updateTime;

}
